/**
 * MobX Store 辅助工具统一导出
 * 为Store提供各种辅助功能
 */

// 导入各个辅助工具
import * as dateHelper from './date_helper.js';
import { errorHandler, ERROR_TYPES } from './error_handler.js';
import { createCacheManager } from './cache_manager.js';
import { Cache, CACHE_PREFIX, DEFAULT_EXPIRE_TIME } from './cache.js';
import * as dataFilterHelper from './data_filter_helper.js';

// 导入帮助模块
import dayjs from 'dayjs';
import cloudHelper from '../../helpers/cloud_helper.js';
import cacheHelper from '../../helpers/cache_helper.js';
import pageHelper from '../../helpers/page_helper.js';
import dataHelper from '../../helpers/data_helper.js';
import timeHelper from '../../helpers/time_helper.js';
import fileHelper from '../../helpers/file_helper.js';
import validateHelper from '../../helpers/validate.js';

// 导出所有辅助工具和常量
export {
  // 日期处理
  dateHelper,

  // 错误处理
  errorHandler,
  ERROR_TYPES,

  // 缓存管理 - 旧版
  createCacheManager,
  
  // 缓存管理 - 新版
  Cache,
  CACHE_PREFIX,
  DEFAULT_EXPIRE_TIME,
  
  // 数据过滤
  dataFilterHelper
};

// 导出工具函数
export {
  cloudHelper,
  cacheHelper,
  pageHelper,
  dataHelper,
  timeHelper,
  fileHelper,
  validateHelper
};

// 默认导出所有帮助工具
export default {
  cloudHelper,
  cacheHelper,
  pageHelper,
  dataHelper,
  timeHelper,
  fileHelper,
  validateHelper
}; 